.agentLayout {
  height: 100%;
  display: flex;
  flex-direction: row;
  background: #fff !important;

  .sider {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 276px;
    gap: 20px;
    padding-top: 28px;
    padding-right: 24px;
    padding-bottom: 28px;
    padding-left: 24px;

    .collapsed {
      display: flex;
      flex-direction: row;
      align-items: center;
      width: 228px;
      height: 52px;
      border-radius: Radius/16;
      justify-content: space-between;
      padding-top: 8px;
      padding-bottom: 8px;

      .agentIcon {
        display: flex;
        flex-direction: row;
        align-items: center;

        .agentName {
          margin-left: 7.5px;
          font-weight: 600;
          font-size: 20px;
          line-height: 100%;
          letter-spacing: 0%;
        }
      }
    }

    .addAgent {
      display: flex;
      width: 228px;
      height: 56px;
      border-radius: 7px;
      gap: 8px;
      padding: 16px;
      background: #f7f8fa;
    }

    :global {
      .ogo-menu {
        background: #fff;
      }

      .ogo-menu-vertical {
        border: none;
      }

      .ogo-menu-item-group-title {
        border-bottom: 1px solid #1c1c1c0d;
      }

      .ogo-menu-item-group-list {
        background: #fff;
      }

      .ogo-menu-item {
        margin: 0px;
        padding: 0 16px;
      }

      .ogo-menu-item-selected {
        background: #f7f8fa;
        color: #15181d;
      }
    }
  }

  .content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding: 28px;
    gap: 20px;
    background: #fff !important;

    .header {
      display: flex;
      width: 100%;
      border-radius: 8px;
      gap: 28px;
      padding-top: 8px;
      padding-bottom: 8px;

      .title {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        height: 36px;
        border-radius: 8px;
        gap: 28px;

        .font {
          font-weight: 400;
          font-size: 24px;
          line-height: 36px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }

      .tools {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 176px;
        border-radius: 8px;
        gap: 8px;

        .btn {
          display: flex;
          align-items: center;
          width: 84px;
          height: 28px;
          border-radius: 8px;
          gap: 4px;
          padding-top: 4px;
          padding-right: 8px;
          padding-bottom: 4px;
          padding-left: 8px;
          background: #f7f9fb;
        }
      }
    }

    :global {
      .ogo-spin-nested-loading {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: auto;
      }

      .ogo-spin-container {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow: auto;
      }
    }

    .body {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      gap: 20px;
      padding-right: 12px;
      padding-left: 12px;
      overflow: auto;

      .left {
        display: flex;
        align-self: flex-start;
        flex: 0 1 auto;
        margin-top: 24px;
        padding: 12px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        border-bottom-right-radius: 24px;
        border-width: 1px;
        color: #000000e5;
        background: #fcfcfc;
        border: 1px solid #dcdde1;
      }

      .right {
        display: flex;
        align-self: flex-end;
        max-width: 743px;
        flex: 0 1 auto;
        padding: 12px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        border-bottom-left-radius: 24px;
        background: linear-gradient(90deg, #3d9dff 0%, #1673ff 100%);
        border: 1px solid #dcdde1;
        font-weight: 400;
        font-size: 16px;
        line-height: 180%;
        color: #fff;
      }
    }

    .box {
      display: flex;
      flex-direction: column;
      height: 100px;
      border-radius: 24px;
      gap: 8px;
      padding: 12px;
      position: relative;
      background: linear-gradient(
        90deg,
        rgba(136, 81, 255, 0.05) 0%,
        rgba(0, 134, 255, 0.05) 100%
      );

      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 24px;
        padding: 1px;
        background: linear-gradient(90deg, #8851ff 0%, #0086ff 100%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
      }

      .input {
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        outline: none;
        font-weight: 400;
        font-size: 18px;
        line-height: 24px;

        &:focus,
        &:hover,
        &:active {
          box-shadow: none !important;
          border: none !important;
        }
      }

      .tools {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        .model {
          display: flex;
          flex-direction: row;
          align-items: center;
          gap: 12px;

          :global {
            .ogo-select-selector {
              background: #fff;
              border-radius: 8px;
            }
          }

          .think {
            display: flex;
            flex-direction: row;
            align-items: center;
            background: #fff;
            border-radius: 8px;
            gap: 4px;
            padding: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }

        .operate {
          display: flex;
          flex-direction: row;
          align-items: center;
          gap: 16px;

          .btn {
            display: flex;
            flex-direction: row;
            border-radius: 8px;
            background: linear-gradient(90deg, #ab84ff 0%, #00aaff 100%);

            .icon {
              color: #fff;
            }

            .send {
              display: flex;
              flex-direction: row;
              align-items: center;
              color: #fff;
              gap: 8px;
            }
          }
        }
      }
    }
  }
}

.spinning {
  display: flex;
  flex: 1;
}

.reasoning {
  padding-right: 10px;
  padding-left: 10px;
  border-left: 1px solid var(---H4, rgba(0, 0, 0, 0.26));
  font-weight: 400;
  font-size: 14px;
  line-height: 180%;
  letter-spacing: 0px;
  text-align: justify;
  color: rgba(111, 118, 134, 1);
}

.tokens {
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-all;
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: #333;

  &Title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
  }

  &Subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
  }

  &Examples {
    display: flex;
    gap: 24px;
    max-width: 800px;
  }
}

.exampleGroup {
  flex: 1;
  padding: 16px;
  border-radius: 8px;
  background: #f7f7f8;
  
  &Title {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
  }
}

.exampleItem {
  padding: 12px;
  margin: 8px 0;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    background: #f0f0f0;
  }
}